change condition of using node export system.

The original condition of using node export system causes error when used with QUnit.

QUnit's 'module' Function is defined globaly. 
So current export logic is malfunctioning.

I change that logic more precise.