fix: use globalThis.process directly in path polyfills
The script-based loading captured process.cwd at load time into a local
object, so runtime overrides of process.cwd (as done by test-path-resolve)
were not visible. Reference globalThis.process directly instead.