Go into non-interactive mode automatically if STDIN/STDOUT is not a tty.