fix version parsing for release candidates