Fixed a problem with adding files when final newline is missing
When there was no final newline in the .files file, the name of the first new file would get appended to the name of the last file. This patch fixes that by simply rewriting the whole file. Also switched to writing out native line endings.
Showing with 15 additions and 11 deletions