Expands environment variables in config files