Fixed cdr file rename bug
The problem was that the rename() function failed
when rotation of the Master.csv was required
due to reaching the maxrow parameter.
This happened, if the temporary CDR file for renaming
was in a directory at a different mount point than Master.csv
rename() function was always failed with a 'Cross-device link' error.
The fix will locate the temporary file in the same directory
as the main Master.csv file
Edited by Vitaliy Saychuk