handle error situation of rename proper
adding file_exists check just to be on the save side
duplicate code :sigh: - will fix this in a second pr
Merge pull request #5096 from owncloud/backport-4960-stable5

Backport of #4960 to stable5