Argument cwd passed to ProcessInThread is ignored. Fixes #51