replace nil with system variables for default config