fix compatability with rhel6

With older versions of iniparse, the check:

    'DEFAULT' in cfg

Would always return False.  The hasattr() check produces the correct
result.