caching~containingDir: allow path to be the empty string, but not undefined / false / null.