fixed some "cat" bugs, moved romfs related "struct" from romfs.c to romfs.h