Fix for bootloader detection