properly identify a cookbook on disk by it's metadata
File.cookbook? will now properly look for raw and compiled metadata
Merge pull request #1004 from berkshelf/work_with_berks3

Backport metadata.json detection logic to berks2