protected function find()
    {
        if (!File::exists($this->workingPath . '/composer.phar'))
        {
            return 'composer';
        }

        $binary = ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false));

        if (defined('HHVM_VERSION'))
        {
            $binary .= ' --php';
        }

        return "{$binary} composer.phar";
    }