Improve error messages for libpath problems.