I finally succeeded in fixing it, there are a couple of disk editing tools and a directory program including the file sizes (fast, based on bios calls) in the z88dk-ext repository.
They now run on many cp/m versions.
This new implementation is aware of the CP/M version and attempts to use the BDOS bridge to BIOS provided by CP/M 3.