fix ssh discovery by not wiping out the found pathname