Ensure removal of temporary directories