Fixes #5595: Use rpmvercmp or dpkg to do version comparison when needed

Ticket: http://www.rudder-project.org/redmine/issues/5595

To be merged in 2.10