Fix compatibility with CWM's openrecoveryscript

Change-Id: I196848ec0a175190176abb6cb443cda14757d0c5