Update CommonJS module registration to check to see if define is a function instead...