Only use richer Resource marshalling on the return values from Resource Monitor invokes - to avoid changing behaviour for other cases that may not yet support richer Resources.
Also ensure working directory for `node` process is based on the location of the library being loaded so that modules load correctly.