Convert gitdir paths to posix on Windows

Apparently, a .git file with "gitdir: path" link on Windows is
allowed to use backslashes in the path.  Who knew?
Merge pull request #2058 from libgit2/rb/gitdir-windows-paths

Convert gitdir paths to posix on Windows