Improve readability of tmp dir generation.