Correctly increment version numbers in metadata.