Check for tmp directory exists (Issue #373).