Fix test for homebrew
Further fixes to SSH agent resurrection