Added validation code for new library paths