Rewrite Tor obfsproxy test to avoid relying on log file.

The obfsproxy lines can get erased from the log after a while, and we might want to disable logging in the future.