Added reboot capability
Fixed trying to delete wrong file (causes reboot loop)