Fix new version number logic