Made configdir check XDG_CONFIG_HOME for config dir

The XDG spec [1] says to check if the environmental variable XDG_CONFIG_HOME is defined, and if so, use it to store configuration. This change makes get_user_config_dir do so. 

[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html