Fix parsing of version numbers with alpha, beta, rc.