[BUGFIX] Fix File replacement

Change-Id: I5bf3b49574e9842cbaf148889a4df18fc30a423a
Releases: 3.2
Resolves: #61840
Resolves: #61810
Reviewed-on: http://review.typo3.org/33317
Reviewed-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Tested-by: Fabien Udriot <fabien.udriot@ecodev.ch>