Added missing `sudo` prefix to reboot commands.