.travis.yml: fix detection of major python version