Fix version parsing so it doesn't barf on -rc's -beta's etc...
Merge pull request #240 from whirm/fix-version-parsing

Fix version parsing so it doesn't barf on -rc's -beta's etc...