In this file, you shouldn't create a global variable. Instead you should move the logic to determine the version into your extension class.