Issue #2045611 by Dave Reid, kmoll | plinto: Fixed Replacing a file leaves an unwanted temporary file that duplicates the replaced file.