Make sure temp directory exists for test.