sorry i assume it's the tools fault and with that i cant help. i use commandline tools for my stuff, like ctrtool, 3dstool and makerom.
all: extract
content.0000.*: original.cia
bin/ctrtool --contents=content original.cia
romfs.bin: content.0000.*
bin/3dstool -x -v -t cxi -f...