Only search valid cookbook directories

This helps with test/spec directories.
Merge pull request #2 from JeanMertz/patch-1

Only search valid cookbook directories