Fixed file checks and creation for reboot