In some cases, .git is not a directory but is a file pointing to the real .git
directory. This is true in the case of submodules, and may be true for other
odd set ups.
If we detect that .git is a file, see if it matches the pointer syntax and if
so, use that for the LocalGitDir (and LocalMediaDir).