Automatic detection of version for Windows build scripts