Check version and use the appropriate principal for the content script sandbox