fix eshell history handling