power: fix correct boot mode detection