give more informative error messages if sudo was not found

Doing some testing for the latency issues we've been discussing on my cygwin system. In cygwin there is no sudo, so this test would fail with an inappropriate error message. I added a dependency check before running the test so that if sudo isn't installed, or we don't have privileges to run it, there's a clear error message.