fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)