fallback to metadata.json if metadata.rb is not present when loading

cookbooks from a path