bin/pegjs: Output just the parser source if --export-var is empty

This will make embedding generated parsers into other files easier.

Based on a patch by Glen Huang:

  https://github.com/dmajda/pegjs/pull/143