Fix a typo in edit_file()

memcmp() result check was inverted.
Merge branch 'fix-external-rename'