Extract helper to check for Git executable.