I've been using pretty much the same script. When you load the image on the rPI and go to System -> Backup/Flash Firmware page, do you see the option to specify a URL for the new flash image? If its missing, then the Luci patches aren't being applied. Or at least this particular patch isn't...