version.py hunts for git.exe on Windows

On windows, it is possible that git will not be in the path but the code
will still be in a git repository. A good example of when this may
happen is using the github application.