Fixes #3611 - Change check of postgresql in rudder-upgrade script in order to prevent from a ver slow upgrade of packages of software

Fixes #3611 - Change check of postgresql in rudder-upgrade script in order to prevent from a ver slow upgrade of packages of software