Strip trailing slashes from repo. and pkg. info dirs.