I have the same problem, AFASI from Google, it is because the updater-binary( or updater-binary?) of these scripts are toooo old, so TWRP just refused to flash.
I tried CWM, it could do it. However, it cannot wipe sd-ext which created by TWRP...Damn it