More accurate detection of pecl package vs pear packages

The problem I ran into was with the OAuth PECL package. It was detected as a PEAR package because there is a HTTP_OAuth PEAR package. `pear search oauth` will match this package.
My changes bring a more accurate detection of PEAR vs PECL packages.