public static function getCommand($command = null)
    {
        if (is_null($command)) {
            $command = (PHP_OS == 'Darwin') ? 'ctags' : 'ctags-exuberant';
        }

        if (exec("which $command")) {
            return $command;
        }

        throw new \Exception("command not found: $command");
    }