[COOK-2926] Use grep_for_version to detect if package is pear/pecl

Signed-off-by: Seth Vargo <sethvargo@gmail.com>