[Chapel Merge] Fix my Perl syntax in checking the Python version

Branch: refs/heads/master
Revision: c33ac45
Author: lydia-duncan
Log Message:

Merge pull request #17935 from lydia-duncan/fixPythonCheck

Fix my Perl syntax in checking the Python version and output the comparison
[reviewed by @Maxrimus]

I'm not sure how, but I must have misread the nightly output I was checking
to ensure the previous change worked. This one actually does, though.

Modified Files:
M util/cron/nightly

Compare: https://github.com/chapel-lang/chapel/compare/9b043e1401c9...c33ac45d2a7b