Added rootRequire function to mocha tasks
Replaced the rootRequire function in each file with a global function