Added support for Win32 git version string generation

I added the missing version string generation for the Windows build platform. Relies only on DOS commands. Uses a different concept to cut the leading parts of the branch string.