Detect tty for plain parseable output