romfs: fix a use-before-set bug on checking the dirent
Merge pull request #370 from grissiom/romfs-next

romfs: fix a use-before-set bug on checking the dirent