Fix for newer version of mocha

When using new versions of mocha, the process object is not exposed
anymore. We need to create it globally if it doesn't exist.