fixing deleting of dirs after sucessful import