Use correct flag for event index.

Submitted by:	luigi
Obtained from:	Vincenzo Maffione, Universita` di Pisa
MFC after:	1 week
More sed(1) usage fixing: the extension -i is not optional.

Pointed out by:	jmallet
MFC after:	3 days