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