Temporary directories should respect `integration.SYS_TMP_DIR`

Also, skip if the directory was not actually created.
Merge pull request #6614 from s0undt3ch/develop

Temporary directories should respect `integration.SYS_TMP_DIR`