checkLibPaths function

Creates the directories, and adds version number