Don't clear unless the log dir exists.

It won't exist on a clean checkout, for instance.