ModRebootMenu: optimize and cleanup