Fixes #53: Errno::ENAMETOOLONG on metadata.json

metadata.json contents are being read into from_json ... JSON.parse as a filename rather than passed the filename which from_json is actually expecting. This change passes in the filename of the metadata.json file rather than the contents.