The necessity of this test would depend on my comment above. If we pre-define the temp folder we would always have a path.