Changed ssh-agent starting behaviour to make it more resistent.