git install check based of technique from @homebysix