fixed version detect error for pythons below 2.7