fixing the build script