fix bug in build script