automatically delete working directory