make possible to specify root for temp_directory