Fix to be compatible with sudo -e