use `xdg-basedir`

https://github.com/sindresorhus/xdg-basedir
Merge pull request #3 from sindresorhus/xdg-basedir

use `xdg-basedir`