Fix log directories.