Don't attempt to call chomp on nil if Git is not installed.