More sudo fixes