util: Fix umask when making temp file