Use array union operator to remove the duplicates.

https://bugzilla.redhat.com/show_bug.cgi?id=1160848