version 8, mktemp compatible for MAC OS