fixed detection of legacy BOT os