[Fixes #46142329] Control the creation of application temp directories.

https://www.pivotaltracker.com/s/projects/684825/stories/46142329