Rework distribution fact checking to be a little less heinous and add
support for Mandriva.

Fixes #9282