coremanager.py: Simplify and generalize core search

The algorithm for finding cores in a directory tree has been
changed so that cores can be found at any depth in the tree. If
a valid core file is encountered in a directory, the algorithm will
not continue to search in its subdirectories