add $LIB_D so it can give the possibility to install udev/system files
in different location

Thanks: Robert Milasan
Check for external helper application's presence. And if not available,
handle it.

This helps and does not throw ugly error messages in the logs.

Thanks: Alain Kalker
Add support for NAND (SSD / Flash) device
Better check for SSD device

Demoting hdparm since we can do it in sysfs
Re-order the check because HAL is deprecated

And for backward compatibility, still have the HAL check with the fix.

Thanks: Pacho Ramos