Record files don't always include directories so find eggdir by looking ...

...for a file within it.

Fixes #2075