main: rework how it determined we are in installer mode