Fixed AttributeError from grabbing version in Python 2.6