issue #398: keep both METADATA.json and METADATA.json.new