Shouldn't this be:

  fs.resolve(null, "/etc/gitconfig")

But why are we doing this fallback here?  If the system config cannot be found, this fallback only works on POSIX systems that have had Git installed by the OS distribution.  In theory we should have found the config correctly via the FS_POSIX class anyway.