Fixed version checks - Python 2.x does not have major attribute in sys.version_info