Perform version checking in __init__ instead of __main__, so as to report invalid version before any syntax or import errors occur.