Export ExpandAutoVars and use in Run()