Fix creation of log dir for new runs.

Regression from 1b5a26f.
Reported by:	sbruno