Fixing Node.monitor() to read entire prompt marker.

Applying @cdburkard fix to #322