fix parsing of confdir argument. Surprisingly, the specified argument type gets called for the default value if default != None.