Changed default to use mkdtemp for keep data

.
started using mkdtemp
Changed from using /tmp to tempfile.mkdtemp for keeping and test keeping