[v14] Fix tsh logout
with broken key dir
#34435
Merged
tsh logout
with broken key dir
#34435