Avoid to search for library in PATH if a path is given
Fix the loading library method and test it properly