Check existence of CSV.foreach method to work with ruby 1.9 or later