fix issue allowing leading zeroes in major, minor and patch

fixing issue #2