more portable mktemp usage