export.js: Export in all CommonJS environments

Closes #521
You should be able to use `grunt.util.spawn`, as mentioned below.