Only search valid cookbook directories

This helps with test/spec directories.