You could probably move the global.* into the tryRequire function - e.g line 33 could be `} else { return global[mod] }`