Fix for locating path to shared library