dir: fix treatment of negated pathspecs