behavior fixed for cleaning tmp directory