sys.version_info: use indexing instead of names

Python <= 2.6 does not support the .major/.minor syntax