shortening use of localsettings into function, applying to all options to allow easier debugging/config
fixed syntax bug
Merge pull request #59 from bcipolli/localor

local_settings check for all settings