Made configdir check XDG_CONFIG_HOME for config dir