Fix backup_mtd_partition

we need _PARTITION to be before the $? test otherwise it will not check for errors properly, also cleanup after a failed mount.