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