Close GH-3: fix issue allowing leading zeroes in major, minor and patch. Fixes #2