Update before_reboot.sh

fix hosts bug