tools/ubuntu_versions.py: Exclude old versions by version not name
Exclusion from ubuntu versions (and streams) has been done by a name comparison with 'hardy' will is incorrect for 'artful' and later. This patch changes to use the version number to provide the same comparison.