Fix sudo testing, now called with non-interactive