If you can't get this script to work on your device check out the brand new sophisticated superrepack tool by @munjeni
SystemRW / SuperRW (feat. MakeRW) v1.32 by lebigmac
NEW VERSION COMING SOON! STAY TUNED!;)(y)
ANY TALENTED DEVELOPERS WANT TO CONTRIBUTE TO NEXT VERSION? PLEASE CONTACT ME...