Convert gitdir paths to posix on Windows

Apparently, a `.git` file with `gitdir: <path>` on Windows is allowed to use backslashes in the path.  Who knew?