[COOK-2926] fix pear package detection when installing specific version

http://tickets.opscode.com/browse/COOK-2926

When installing a specific pear package version, the package is not recognised due to a faulty regexp.