Set IMGINFO_DEVICE to correct path

When device was set to a /dev/mmcblk*, IMGINFO_DEVICE was not being set correctly.