Adding checking if the git plugin is loaded.

- Presumably, if it's not, we don't have git, so we don't try git
  "things"