sysfs: Use the presence of /sys/block/<dev>/md as indicator of valid device