Exit early from git plugin if not in git repo.

Added check for .git directory in current, before wasting time querying git. This saves seconds on my pc.