sudo won't make a bad git-remotes dir (fixes #6548)

I would love to test this, but without something like a portable
fakeroot (or maybe some sort of complicated mocking of chownr), it's
more or less impossible to test.