Replace direct construction of tmp dirs with PathUtils usage in number of MR tests