fix error where file.recurse would mess up names on salt-ssh
Merge pull request #18277 from thatch45/ssh_recurse_fix

fix error where file.recurse would mess up names on salt-ssh