respect XDG_CONFIG_HOME for getting user config dir.

Under linux the XDG Base Directory Specification define different
enviroment variables where to store what.
Merge remote-tracking branch 'respect-XDG_CONFIG_HOME' into 1.5