boot: Fix some always false conditions