Check for tmp directory exists (Issue #373).
Check for tmp directory exists (Issue #373).


Former-commit-id: 797b7865833934f17aadf77c9e9997331a82c910 [formerly 9d4e26049d65c9e220cb4380f1bd84cf7d73e1c1]
Former-commit-id: 0c6cb2648cd86c0a545539e20b83cd2762392c98
romancow/Sugar,romancow/Sugar,andrewplummer/Sugar,andrewplummer/Sugar