fixed reboot from cron, without tty