don't use /dev/tty in daemon mode