ofixed incorrect way to build path to tmp dir