Fix log and archive directories.