better bootloader detection