New version of prebuild script, to work with imageproc-settings migration.