Allow log dir to be specified using env var