Fixed problem when generating rootfs
Changed filesystem handling