Added in some redirection to check and hide error message in find_git_dirty