Fix output when .respond_to?(:tty?) returns false.