Fix tmp dir never cleanup