Fix getattr call to hasattr
Merge pull request #185 from rgardner/fix-config-settings

Use hasattr, not getattr in if statements