It isn't enough to check if the child is a directory. We should also check if we think it actually contains a cookbook. Here are some helper functions that I wrote for this: https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/core_ext/pathname.rb