[BUGFIX] Detect TYPO3 version for classname comparison

Fixes #376.