fix duplicate logcollect tar name

Backporting #5335 from master