Fix version number comparison

version numbers `1` and `1.0.0` should equal in both direction.

```
	assertVersion(t, "1.0.0", "1", 0)
	assertVersion(t, "1", "1.0.0", 0)
```

The second tests fails on master. This PR fixes this issue.