Implement the GetLibraryPath function.