Check for both .so and .dylib in provided lib location