Fixed unintended directory matching