set tmpdir to system one, if configured is not writable or set