Improve reboot done check

Use the uptime stored before a reboot to verify that a reboot is done.