fixed the build scripts