Fix config.getSetting() helper function