packaging: setup: support older psql-8 and older psycopg2

Change-Id: Ifb80c2d57a516112dc54a36b1be868205359862e
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>