Only use `hub` for `git` if it's installed.