Include parent dir in pair matching