Fix version number generation