Improve tmp dir