Revert: rewrite build script