Find a directory within a list of paths