cmd_mtdparts: Move to common handling of FLASH devices via MTD layer