mtd: improve parameter parsing for block2mtd