Replacing get_random_directory_name to mkdtemp