Fix freeze if bash fails during `direnv export`

xref #50