SI-6039 Harden against irrelevant filesystem details

The symbol loader need not create and populate package
symbols merely because there is a directory somewhere.
Every package created based on the existence of a directory
should contain a classfile, either directly or indirectly.
Merge pull request #2503 from paulp/issue/6039

SI-6039 Harden against irrelevant filesystem details