Add pre-run check for git installation