Update and fix sudo

Updates sudo to the latest version and fixes #2965