fix an issue in the build scripts