Fix incorrect return without appending rootfs