bot: Fix version check to use the new switch