Support XDG base directory specification
Merge remote-tracking branch 'holomorph/master'
[youtube] Simplify cache_dir code (#1529)