build script: modify the original updater script