cleans up directory tree