fix permission race condition on .ssh dir creation