added `check_git()` to ensure git binary is on path