improve Main.hs: getSetting, getSettingFile