Add specific check for "require" in hasModule check.

When using moment.js in QUnit tests, hasModule resolves true and triggers makeGlobal deprecation warning. This pull request ensures that the hasModule check on line 30 only resolves as truthy when using an actual module pattern with a require fn.