FIX: improve sanitize collection functionality
Fix from joozik jozef.piatkiewicz@gmail.com
When I call sanitize-data-file
on collection it either cleared my .log file completely (as it was not actually writing to the .new file due to relying on location
slot instead of on file name) or it was throwing an exception when the file with .new extention did not yet exist. This pr makes sanitize-data-file
to always write current 'sanitized' collection to the .new file before copying it to the .log file.