update clean needle script

only consider needles with tags that were actually used. Ie don't look at
"orphanded" needles.