fix ssh-agent for unclean shutdowns
add same directory window command