Look for REMOTE_HOST before SSH_* environment options.
We need a trailing dot when using --server --daemon.