fix for #18778 (salt-ssh tries to copy file to the filesystem root)
Merge pull request #18926 from rallytime/bp-18807

Backport #18807 to 2014.7