Fixing working dir path when reading settings.