Change file output to use appropriate extension (e.g., pegjs)