Work in browser environments that also have `exports`

With libraries such as [Mr](https://github.com/montagejs/mr) it's possible to be in the browser, but also need to use `exports`. This simple patch enables this without breaking node.