setup: use sort -u

Use sort -u instead of using uniq.