better handling first reboot in zdup
Merge pull request #115 from nilxam/update_0916

better handling first reboot in zdup