Emulate Filename.get_temp_dir_name to support OCaml 3.12