Change Python version detection to use an external script.