Try to prevent 'stdin is not a tty'