fix parsing of `dir` output
remove caching share as caching should be done at a higher level