bugfix: directory matching condition discarded to ambiguous pattern