for #23095 allow environment variables in core_{os}.cfg files

see https://github.com/shotgunsoftware/tk-core/pull/32