Added check for custom library folder