19752 - Friendly and informative errors when there's no libdir

There is no default libdir so when users do not set it they get
very unfriendly errors from File.exist etc which does not really
say what is wrong.

This commit adds a better error message when libdir is not set