supporting node >=0.8.0

The "line" event is attached to the readline interface (rli) in Node.js v0.8.0 and greater.