make celery log import more version-tolerant