pass logger to wshd daemon, print it in tests

This is really convenient for debugging as the daemon normally has no
stdout/stderr/stdin.
resolve executable paths in daemon