Work around to a known PHP problem with parsing Mac files

- Add ini_set('auto_detect_line_endings', TRUE) before opening file and ini_set('auto_detect_line_endings', FALSE) after closing file. This helps parse last column correctly while importing CSV files created on Mac.
- See PHP docs on fgetcsv() for more information.