Unify URL/upload_dir select based on git describe
Cherry-pick of modifications done on release/5.1 to unify way to choose URL/upload_dir based on git describe
Edited by Peio Rigaux
Cherry-pick of modifications done on release/5.1 to unify way to choose URL/upload_dir based on git describe