Invoke sudo on package-managing scripts

For testing purposes, this deals with between-command timeouts most
gracefully.  For instance, MacPorts should run on an up-to-date ports
tree, but port is network bound and could cause a later sudo to time
out waiting for someone to look at the screen again.