pubdev: Handle packages with dash in version numbers
Version number of a pubdev package containing a dash character fails to be parsed by packaging.parse_version.
So ensure to split version number by dash to extract parsable part in it and fix loading of such packages.
Fixes SWH-LOADER-CORE-1FR.