Don't call __is_git_dirty if in not git dir