pkgresources: optional unique entry points check

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>