Make use_sudo default to False.  Other fixes.
Merge in fix from kormoc for local testing.