tmp dir were not being deleted