Revert "Simplify gnoref by using uniq -u instead of comm"

Maybe I prefer the first version afterall.

This reverts commit c44831a3a8ba6ac93e8615524cb241e5fefcf67f.