improve non-tails support, make sudo more optional