Fixed cleaning of the work folder