Fix stdin: is not tty