We need this even though we will be calling mkdtemp() since the umask affects the mode of any parent directories.