Different output (color/formatting) when stdout is tty than when it is not