Allow extensions to use %c

This also allows extensions to use built-in menus if they do not define menus of the same name.

Fixes https://github.com/LLK/scratch-flash/issues/417.