check whether "XDG_CONFIG_DIRS" is  set before accessing it to prevent key errors