pdsh: 2.31 update, --HEAD option, test

Closes #24147.
Closes #24165.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>