logEvents transform: Don't leave a bogus file:// prefix when removing process.cwd() from error messages.