Same git-recognition logic as install's