utility app: fix flash read/write problem on mtd devices