init / p1: fix detection of bootmode to allow recovery to work on 4.4