Fix metadatajson.html page when METADATA.json.new file exists