fixed auto config ssh-agent bugs