Corrected the check for baremetal