Replace version test with one based on `python --version`