workaround putenv's not copying envvar