Modify get_folder_from_ref() to fallback on "current" dir for test tags "0.0.0-xxx"
<!-- If the issue is concerning a bug, please use dedicated template -->
### Summary
When tagging a branch with test tag like "0.0.0-xxx" the part of CI computing ci_deployment_folder values has a bug.
the function `get_folder_from_ref()` return '0.0' with doesn't exist.
We should fix this to fallback to 'current' folder.
<!-- Summarize the issue encountered concisely. -->
#### related references
<!-- Put here any RFE, issue, MR reference which could be related to this issue to have a better picture of the context -->
### Details
<!-- Explain what is the purpose of this issue -->
issue