Move createLogDir to functions. Reuse in custom setup to be sure that log dir is created. Useful for vbox experiments.