Detect installation prefix in scan_system script
Depending on the distro in which MDIS is installed, the PATH environment variable and ldconfig may be different so try and match what the default installation path should be for each distro automatically.