fixing the stan_csv_reader for Mac for line endings terminating in \r