Attempt to improve file cleaning.