Change window title according to remote or local session.