change condition of using node export system.

The original condition of using node export system causes error when used with QUnit.
check module.exports existence
Merge pull request #41 from ironhee/master

change condition of using node export system.