expand variables in config file