dispatcher.Bridge: rework stripScriptName()

Signed-off-by: Alejandro Mery <amery@geeks.cl>