### Summary

When using: 

```python
from ansible.galaxy.collection import build_collection
```

And calling it like:

```python
input_path= "/home/ccamacho/dev/automationhub/ccamacho/automationhub/" # Where galaxy.yml is
ouput_path= "releases" # The output folder relative to the input_path like <input_path/output_path/>
build_collection(input_path, output_path, True)
```

It fails with:

```python-traceback
The full traceback is:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/ansible/executor/task_executor.py", line 165, in run
    res = self._execute()
  File "/usr/local/lib/python3.10/dist-packages/ansible/executor/task_executor.py", line 660, in _execute
    result = self._handler.run(task_vars=vars_copy)
  File "/home/ccamacho/.ansible/collections/ansible_collections/ccamacho/automationhub/plugins/action/collection_build.py", line 89, in run
    galaxy.collection_build()
  File "/home/ccamacho/.ansible/collections/ansible_collections/ccamacho/automationhub/plugins/plugin_utils/automationhub.py", line 64, in collection_build
    build_collection(self.options.input_path, self.options.output_path, True)
  File "/usr/local/lib/python3.10/dist-packages/ansible/galaxy/collection/__init__.py", line 514, in build_collection
    collection_output = _build_collection_tar(b_collection_path, b_collection_output, collection_manifest, file_manifest)
  File "/usr/local/lib/python3.10/dist-packages/ansible/galaxy/collection/__init__.py", line 1395, in _build_collection_tar
    tar_file.add(
  File "/usr/lib/python3.10/tarfile.py", line 2157, in add
    tarinfo = self.gettarinfo(name, arcname)
  File "/usr/lib/python3.10/tarfile.py", line 2030, in gettarinfo
    statres = os.lstat(name)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ccamacho/dev/automationhub/ccamacho/automationhub/laybooks/collection_publish.yml'
fatal: [localhost]: FAILED! => {
    "msg": "Unexpected failure during module execution: [Errno 2] No such file or directory: '/home/ccamacho/dev/automationhub/ccamacho/automationhub/laybooks/collection_publish.yml'",
    "stdout": ""
}
```

### Issue Type

Bug Report

### Component Name

[`lib/ansible/galaxy/collection/__init__.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/galaxy/collection/__init__.py)

### Ansible Version

```console
$ ansible --version

ansible [core 2.15.3]
  config file = None
  configured module search path = ['/home/ccamacho/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible
  ansible collection location = /home/ccamacho/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
```

### Configuration

Nothing custom or special

### OS / Environment

CentOS Stream9

### Steps to Reproduce

Using python directly:
```python
input_path= "/home/ccamacho/dev/automationhub/ccamacho/automationhub/" # Where galaxy.yml is
ouput_path= "releases" # The output folder relative to the input_path like <input_path/output_path/>
build_collection(input_path, output_path, True)
```
Testing the collection:
```shell
git clone https://github.com/ccamacho/automationhub
cd automationhub/ccamacho/automationhub/
ansible-galaxy collection build -v --force --output-path releases/
ansible-galaxy collection install releases/ccamacho-automationhub-1.0.0.tar.gz --force
ansible-playbook ./playbooks/collection_build.yml -vvvvv
```

### Expected Results

The collection is built correctly

### Actual Results

```python-traceback
FileNotFoundError: [Errno 2] No such file or directory: '/home/ccamacho/dev/automationhub/ccamacho/automationhub/laybooks/collection_publish.yml'
```

As you can see it should be "playbooks" instead of "laybooks"

### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
"""Installed collections management package."""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import errno
import fnmatch
import functools
import json
import os
import pathlib
import queue
import re
import shutil
import stat
import sys
import tarfile
import tempfile
import textwrap
import threading
import time
import typing as t
from collections import namedtuple
from contextlib import contextmanager
from dataclasses import dataclass, fields as dc_fields