Adding sudo support via conditional attribute