fix broken temp dir logic in specs
silence warnings when not in a git repository
do not load gh if not needed