romfs: rewrite mkromfs.py