Updated scripts with patched XBMC minimise and maximise