refactor(cloudfunc) removeLastSlash - > rmLastSlash