Fix creation of log dir for new runs.

Regression from 1b5a26f.
Reported by:	sbruno
Merge remote-tracking branch 'upstream/master'
Add PKG_ENV= to the env line