Add new version_compare()

The old one failed comparing things like "1.3" and "1.3.1".
Change distribution parameter