Handle misformatted versions with a nicer error message.
Merge pull request #53 from huonw/version-error

Handle misformatted versions with a nicer error message.