Respect `TMPDIR` variable in run scripts