Actually check if stdout is a TTY.