Fixed stdin: is not tty