I think this would be better if it just used ```matplotlib._get_configdir()``` and then it can be configured in a consistent way. @tonysyu, did you have a motivation for not using that function in the first place, or was it just a case of it being well hidden?