Fix issue with setting global variables, namely 'require'.