fixed detection of device to use fstab