Use canonicalized absolute pathname

This should fix Jira #ROOT-5636 Be more precise on whether a shared library was loaded