Fix #792: "Not a directory" error when using python setup.py nosetests

The issue is that egg files can end up on our search path, and we treat
all paths as though they are directories.  Instead, we'll do an explicit
check that it is a directory before attempting to load tests from it.