fixed build script and build conf