Fix git config check so it doesn't execute on every run.