Fixed path script.

OS X/Ubuntu test was broken.
Fixed sudo with nocorrect aliases.