### Bug description

When publishing a document which is located in a subdirectory, I get the following error with Quarto 1.3 (this worked with Quarto 1.2):

```
ERROR: NotFound: No such file or directory (os error 2), stat '08/08/08/08_files/libs'

NotFound: No such file or directory (os error 2), stat '08/08/08/08_files/libs'
    at Object.statSync (deno:runtime/js/30_fs.js:322:9)
    at file:///Users/clemens/Applications/quarto/bin/quarto.js:121353:18
    at Array.reduce (<anonymous>)
    at normalizePublishFiles (file:///Users/clemens/Applications/quarto/bin/quarto.js:121351:45)
    at renderForPublish (file:///Users/clemens/Applications/quarto/bin/quarto.js:121303:24)
    at async renderForPublish (file:///Users/clemens/Applications/quarto/bin/quarto.js:109082:24)
    at async handlePublish (file:///Users/clemens/Applications/quarto/bin/quarto.js:108988:26)
    at async publishDocument (file:///Users/clemens/Applications/quarto/bin/quarto.js:121342:38)
    at async publish5 (file:///Users/clemens/Applications/quarto/bin/quarto.js:121438:132)
    at async doPublish (file:///Users/clemens/Applications/quarto/bin/quarto.js:121394:13)
```

Here, I used

```
quarto publish 08/08.qmd
```

However, when running the command from the same folder as the document, everything works:

```
quarto publish 08.qmd
```

I've already reported such an issue for an older version (#2623), but it seems like something broke that fix.

OS: macOS Ventura 13.3.1

#### Output of `quarto check`:
<details>

```
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.340
      Path: /Users/clemens/Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.10
      Path: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.3.0
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
      knitr: 1.42
      rmarkdown: 2.21

[✓] Checking Knitr engine render......OK
```
</details>

### 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.
- [X] 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?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
dragonstyle
2023-04-27T12:48:51Z
cbrnr
bug publishing regression
Hot-fix
closed
Cannot publish document in subfolder
https://github.com/quarto-dev/quarto-cli/issues/5330