Replace libtmpdir with std::io::TempDir