Refactor ssh agent availability checking into the ssh client factories