Improve update when sudo needed.