cpp: rpc: evaluating TMPDIR environment variable for writing certificates