Separate appdir and settingDir variables