Fixed the reboot command at the end of the script