Ensure a global `module` exists. Fixes #8.