Add support for commonjs 1.1.1

Prior to this, the module would only work with environments that
supported letting module.exports be set to a function.