refine name of temp directory