Only install the hook if Git can be found.