Add 1.7.8 sudo compatibility logic.

Also updated to use 1.7.8.