MT#7793 Export EDR files from accounting.events
MT#7793 Properly handle cdr path /tmp

If cdr was in /tmp already, the tmp file overwrote the original file.