fix(test): use single-quoted trap for safer cleanup (PRI-823)
Defers $TEMP_DIR expansion to execution time and quotes the variable
inside the trap, protecting against paths with spaces.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>