fix to build script