configure.ac: fixed python3-config detection.