Improved versionCompare.

* Now by default returns 1.0 and 1.0.3 as equal, can be turned of by setting the checkMinor flag;
* Fixed 1.0 != 1.0.1, while 1.0 == 1.0.0.1 (now also only happens when checkMinor is true);
* Fixed returning -1 and 1 when they should be 1 and -1 respectively (for sorting).
versionCompare checkMinor now explicitly needs to be true.