Config class

Creating the pull request so that I can comment some lines ;)
I think we shouldn't use a fixed `-4` in the substr, but instead we should replace the `\\` by `/`, find the position of the last `/` character and remove the part after this.