Fixing code which improperly truncates minor version...

Closes #2

Thanks to @ybart for the code suggestion!