git: Set sysconfdir during the build

Configuration files should be in /usr/local/etc (or equivalent), not in
the cellar, where git put them before.

Closes #22082.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>