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 pull request #1324 from owncloud/respect-XDG_CONFIG_HOME

respect XDG_CONFIG_HOME for getting user config dir.