Image creation script: fixed a bug in a module required by autoprovisioning