Fixing parsing of metadata.json

JSON is not properly parseable in bash, but this seems to work for most
puppet modules.