backport support for using environment vars in config file