Support adding clue/phar-composer as a require-dev and running out of vendor/bin

From a random project running

    php composer.phar require --dev clue/phar-composer
    php composer.phar update
    php composer.phar install

allows this

    ./vendor/bin/phar-composer

to work using a technique similar to the one used by phpunit.