pass detect_sudo for local connections

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>