rework mkromfs to support directory and linking