Output temporary grammar.js and diagram-grammar.js into tmp folder