Fix regular expression check for release versions