Remove %GIT_DIR% before calling git.exe