add pgdg apt support, improved debian/ubuntu support with older postgres...

... versions

COOK-2840
Add PGDB Apt support and improve versions support for Debian/Ubuntu