Fixes to specify a different log directory.