fixing schema version check to properly take into account engines