added exception type when creating config file directory