Fixed the build scripts