xdg_config_dir(): fix os.path.expand [sic] typo, and refactor
Merge pull request #12718 from hulu/xdg-fix

xdg_config_dir(): fix os.path.expand [sic] typo, and refactor