rdmd: Fix std.process.getenv deprecation warning

Use tempDir instead.