Allow phpunit via composer setup through autodetect.

Allows standalone git checkout + composer update just as the Cake2.x core does it for composer based setups.
This auto-detects the composer one if applicable, otherwise falls back to the global/PEAR one.