ensured literal directory check only catches directory children, as minimatch would match literal files