XDG_CONFIG_HOME check added