rsync in service constructs dist-git path incorrectly
Sentry Issue: [PACKIT-SERVICE-3Q7](https://sentry.io/organizations/red-hat-0p/issues/2745886050/?referrer=github_integration)

```
PackitCommandFailedError: Command 'rsync --archive --ignore-missing-args /tmp/sandcastle/packaging/fedora/sscg.spec /tmp/packit-dist-gityplt7ctf/packaging/fedora/sscg.spec' failed.
(2 additional frame(s) were not displayed)
...
  File "packit_service/worker/handlers/distgit.py", line 126, in sync_branch
    self.api.sync_release(dist_git_branch=branch, tag=self.data.tag_name)
  File "packit/api.py", line 336, in sync_release
    self.update_dist_git(
  File "packit/api.py", line 189, in update_dist_git
    sync_files(synced_files)
  File "packit/sync.py", line 203, in sync_files
    run_command(command, print_live=True)
  File "packit/utils/commands.py", line 97, in run_command
    raise PackitCommandFailedError(
```

The dist-git path should be `/tmp/packit-dist-gityplt7ctf/sscg.spec`
diff --git a/packit/config/common_package_config.py b/packit/config/common_package_config.py
index 0e33c48d..c64a4e61 100644
--- a/packit/config/common_package_config.py
+++ b/packit/config/common_package_config.py
@@ -5,6 +5,7 @@
 Common package config attributes so they can be imported both in PackageConfig and JobConfig
 """
 from os import getenv
+from os.path import basename
 from typing import Dict, List, Optional, Union
 
 from packit.actions import ActionName
@@ -136,7 +137,7 @@ class CommonPackageConfig:
         downstream_specfile_path = (
             f"{self.downstream_package_name}.spec"
             if self.downstream_package_name
-            else self.specfile_path
+            else basename(upstream_specfile_path)
         )
         return SyncFilesItem(
             src=[
diff --git a/tests/unit/test_package_config.py b/tests/unit/test_package_config.py
index 4f0560ca..8b8bf1b7 100644
--- a/tests/unit/test_package_config.py
+++ b/tests/unit/test_package_config.py
@@ -1236,6 +1236,19 @@ def test_get_specfile_sync_files_item():
     )
 
 
+def test_get_specfile_sync_files_nodownstreamname_item():
+    pc = PackageConfig(specfile_path="fedora/python-ogr.spec")
+    upstream_specfile_path = "fedora/python-ogr.spec"
+    downstream_specfile_path = "python-ogr.spec"
+
+    assert pc.get_specfile_sync_files_item() == SyncFilesItem(
+        src=[upstream_specfile_path], dest=downstream_specfile_path
+    )
+    assert pc.get_specfile_sync_files_item(from_downstream=True) == SyncFilesItem(
+        src=[downstream_specfile_path], dest=upstream_specfile_path
+    )
+
+
 @pytest.mark.parametrize(
     "raw",
     [
@@ -1259,7 +1272,7 @@ def test_get_specfile_sync_files_item():
         },
     ],
 )
-def test_package_config_specilfe_not_present_raise(raw):
+def test_package_config_specfile_not_present_raise(raw):
     with pytest.raises(PackitConfigException):
         PackageConfig.get_from_dict(raw_dict=raw)
 
['tests/unit/test_package_config.py', 'packit/config/common_package_config.py']