Fixed version gen script.