remote nc: fix finding empty window with path comparison