rootfs_split: fix a typo, and fix compiler warnings