fixing no dev tty issue when daemon runs without a TTY