gitcfg: pre-compute values for get_user_or_system()

Store config values for use by get_user_or_system() to make
it simpler and faster.

Signed-off-by: David Aguilar <davvid@gmail.com>