Fix cleaning of temp folder.