Fixed version number generation