Test cases: fix broken version check for libprotoc 23.1.

Protoc version number seems to have dropped the last number,
match only first two in the regexp.
diff --git a/tests/proto3_optional/SConscript b/tests/proto3_optional/SConscript
index f8a5b5c..520ae74 100644
--- a/tests/proto3_optional/SConscript
+++ b/tests/proto3_optional/SConscript
@@ -6,8 +6,8 @@
 
 version = None
 if 'PROTOC_VERSION' in env:
-    match = re.search('([0-9]+).([0-9]+).([0-9]+)', env['PROTOC_VERSION'])
-    version = (int(match.group(1)), int(match.group(2)), int(match.group(3)))
+    match = re.search('([0-9]+).([0-9]+)', env['PROTOC_VERSION'])
+    version = (int(match.group(1)), int(match.group(2)))
 
 # Oneof is supported by protoc >= 3.12.0
 if env.GetOption('clean') or (version and (version[0] > 3 or (version[0] == 3 and version[1] >= 12))):