Clean up of `is_git`