fix: Issue 1105 `autosubmit configure` not handling paths that end with slash + rebase

refactor joinpath to slash syntax

refactor test
3 jobs for iss#1105
in 0 seconds, using 0 compute credits, and was queued for 0 seconds