Remove semver dependency

It would be nice to get rid of this bit of uglyness...
How about writing a little function which converts a "version" into an array of numbers?
eg:
1.2.3-4-generic-x-5 ->  [1,2,3,4,5]
1.2.3x4.abcd.4 -> [1,2,3,4,4]
careful:
1.2.3-xx-14.2 -> [1,2,3,14,2] not [1,2,3,1,4,2]
This would IMO be much more robust, anyway thanks for getting rid of these ugly dependencies! :D