Enhanced call to 'mktemp -d' to be more portable.
The call
was only made when /var/log is 100% full did a call to
'mktemp -d' that works on some platforms but not Ubuntu.
Without this change, if /var/log was 100% full, on some
platforms the error would show as:
mktemp: too few X's in template ‘tmp_p4d_base’
This logic was only exercised if /var/log was 100% full.