Make more general rootfs build scripts