libfstools: avoid false positives when matching devices and volumes