[LibGit2] Newline changes index on windows/unix.
[LibGit2] Fixup to previous commit.

Also includes cleanup to use Path.Combine.