fix to pre-build scripts
prebuild fix