targz: trim last slash