Fixed bug in reboot/halt mechanism for openELEC.