added a function to follow a symbolic link of the target library.