Adapt CubeViz to handle new tmp dir functionality