fixed build script