Move sys.version test out of x/b2x/etc. functions