Only addwrite for tmp dirs if sandbox is enabled.

This should fix bug #307729.
1 file changed