Fix find-git error conditions