Try to handle `sudo` transparently.