#1035: Fix search for installed phpcpd/pdepend if running in composer.

Fix typo for phpcpd, cleanup code and add more information.
Fix pdepend detection for composer

http://www.phing.info/trac/ticket/1035