change the step definition for checking if a cookbook was installed

or exists in the cache because it was installed by Git