Add SSH agent socket fix for persistent sessions

This comes in handy when detaching using screen or tmux.  See also
http://hoelz.ro/blog/making-ssh_auth_sock-work-between-detaches-in-tmux