Fix `tr_env_key_exists' on Windows