fix openrecovery script generation for TWRP