export.js: Export in all CommonJS environments

Closes #521
> There is no check anywhere that `define` is defined before `define.amd` is accessed.

It's the `root.define` check immediately preceding the `define.amd` check.