Fix missing imports. Log only on download, not HEAD.