Improved the code and usage of run_git_config