modified prebuild.sh script