Fix moving target

Accessing twisted.version.major directly crashes in Twisted <13.0