TRQ-2736. Fix a host detection issue with pbsdsh/tm interface.

When using pbsdsh, fix assumptions where pbs_mom incorrectly determined
which host was being used. pbs_mom's checks didn't really work if you
are running more than one task per node at a time. This caused hangs
when running pbsdsh utilities.