ark: update build script