update_lists: improve logic

Actually check whether there are new datasets, don't just count the
lines. This handels better lines that are commented out, for example
for duplicate datasets that are processed with two tags.