added check for module as well as require for node environment

see PR : https://github.com/SheetJS/js-xls/pull/23