gen_grammar: raring fixes

In the latest Ubuntu, the mkdfa program no longer has a .pl extension.