Fix phpcpd support composer and pear

This should support PHPCPD installed through Composer and PEAR.
It supports both 2.0.0 and 1.4.3 when installed through PEAR.

Similar PRs #276, #257 and #253 didn't have BC with PEAR, this PR should though.