Fix extract-script

This follows from commit at http://review.cyanogenmod.org/#/c/32452/1