chore: extend module system magic
chore: extend module system magic

Check more strictly for the type of `module.exports`.

Some testsuites seem to have a global `module` when the project itself
is using requireJS syntax.

ePages-de/scribe-plugin-paragraph-command