Fix package version generation.