fixing wrong version detection with python 2.7