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

Fix #17266