Simplify implementation of smartBaseName
Simplify implementation of smartBaseName

aabadie/medInria-public,rdebroiz/medInria-public,rdebroiz/medInria-public,NicolasSchnitzler/medInria-public,aabadie/medInria-public,NicolasSchnitzler/medInria-public,rdebroiz/medInria-public,NicolasSchnitzler/medInria-public,aabadie/medInria-public