### Bug description

For this document:

````
---
title: "Mermaid"
format:
  html: 
    mermaid-format: png 
---

```{mermaid}
%%| echo: fenced
flowchart LR
  A[Hard edge] --> B(Round edge)
  B --> C{Decision}
  C --> D[Result one]
  C --> E[Result two]
```
````

I see this error:

```text
jjallaire@jjallairesMBP2 julia-cwd % quarto preview /Users/jjallaire/quarto/bugs/julia-cwd/subdir/mermaid.qmd --no-browser --no-watch-inputs
ERROR: TypeError: Relative import path "puppeteer/mod.ts" not prefixed with / or ./ or ../

TypeError: Relative import path "puppeteer/mod.ts" not prefixed with / or ./ or ../
    at async getPuppeteer (file:///Applications/quarto/bin/quarto.js:35175:24)
    at async fetcher (file:///Applications/quarto/bin/quarto.js:35304:22)
    at async getBrowserExecutablePath (file:///Applications/quarto/bin/quarto.js:35308:28)
    at async criClient (file:///Applications/quarto/bin/quarto.js:35694:28)
    at async file:///Applications/quarto/bin/quarto.js:35677:22
    at async Semaphore.runExclusive (file:///Applications/quarto/bin/quarto.js:35361:29)
    at async Object.createPngsFromHtml (file:///Applications/quarto/bin/quarto.js:35858:44)
    at async makePng (file:///Applications/quarto/bin/quarto.js:62939:72)
    at async Object.cell (file:///Applications/quarto/bin/quarto.js:63004:20)
    at async Promise.all (index 0)
```

In development mode it still fails but I see a different behavior. The 'Check file' for puppeteer is called and then hangs:

```text
jjallaire@jjallairesMBP2 julia-cwd % quarto preview /Users/jjallaire/quarto/bugs/julia-cwd/subdir/mermaid.qmd --no-browser --no-watch-inputs
Check file:///Users/jjallaire/quarto/quarto-cli/src/resources/vendor/deno-land/x/puppeteer@9-0-2/mod.ts
```

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [ ] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [ ] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [ ] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
cscheid
2023-05-04T14:00:46Z
jjallaire
bug
v1.4
closed
Failing to call puppeteer for mermaid png in release build w/ deno 1.33.1
https://github.com/quarto-dev/quarto-cli/issues/5417