Revert "Tweak semver version rewriting."

This reverts commit b318b3e8c1ad6c7082b800d5c71a629084562e2d.