Properly check if the current path is inside a git repository.
Optionally install git-hooks into found repositories.