romfs pruner: fix filename check

as discussed in #889