Add ~ to the arguments of genversion.bat