resolve lib path