fix bug in collateJSONfilesToSingleCSV
fix bug in collateJSONfilesToSingleCSV

Fix bug where the created temporary json file is read again when output file is in the same directory.

aidendoherty/biobankAccelerometerAnalysis,aidendoherty/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis