Remove usage of SplFile and SplTempFile => not supported wiht php < 5.4 (fputcsv)