Add explicit umask 0002 in temp dir creation.