remove trailing slashes
fixes 7z chip support