Fix get uptime and wait for reboot methods