for #23095 expand env variables in the core_{os}.cfg files in tank shell script