Fixes #3528: Make the rudder-upgrade script validate the status of LDAP and PostgreSQL before running