Fix IO#lines is deprecated; use #each_line instead