Fix log cleaner handling in migration script.