ubuild: make UbuildCache.pack atomic
scripts: simplify scripts interface, automatically merge build output into rootfs/ or cross sysroot