refactor the default config file code
Merge branch 'generaloption' into easyconfig_stringtemplate