Revert "Revert "Add Adi's correct code block in fileclient.py back in, p...

Reverts saltstack/salt#13954