Fix issue in the module sandbox

It's better to have global object as properties of the sandbox
instead of properties of the prototype of the sandbox: we can
change them.
Changed fs.workingDirectory from a method to a property

Even if it violates the CommonsJS filesystem specification, which
specify a method, we change to a property to be compatible with
PhantomJS.