Fix the matching of device entries when working with HiMD disk
images or selecting the path to the HiMD device manually.