Cleaner uniq command, should help cross-platform compatibility.