Bugfix commit

Fixed bug:

Different config paths can cause crashes.