fix(cloudfunc) rmLastSlash: remove even when str consist of one slash