rework rootfs generator
fixed a bug that make rootfs with specific platform