tree: Fixed for Py2.6 (version_info is just a tuple, not a record)