added check for module as well as require for node environment

see PR : SheetJS/js-xls#23
Just a one liner here - have tested in my project which uses requireJS (http://requirejs.org/)