[app][aboot] use a more intelligent bootmode selection