BACKPORT - proposed/juno - missing .ssh directory

Added a check to see if /root/.ssh exists prior to pushd (also creates dir with correct perms if it doesn't).

Cherry Picked from 6a07553a1708ca0c5f0f4948815d559790388ee7