fixing the build scripts