ensure scp destination directories exist (with mkdir -p)

in SSH launchers.

As described in #3411

closes #3411
set default permission to 775 with makedirs
Merge pull request #4977 from minrk/scp-mkdir-p

ensure scp destination directories exist (with mkdir -p)