Fix editing remote unwriteable file

With the original advice, if we try to find a not writeable file on a
remote machine, the extra tramp prefix would be inserted. As a result,
we actually end up in a blank new file.
Merge pull request #627 from toctan/sudo-tramp

Fix editing remote unwriteable file