Fix cleanlogs command.