[WM] fix logic of .ssh dir check in deploy script