fixed syntax for checking whether the host should reboot.