Avoid SafeTempDir with odd permissions.

We actually need rwx permissions, so check for it.