Fixes for the unit test package __all__ list checking.
Now only *.py files and directories are checked. In some cases other files could be present in
the packages, for example the object files when compiling the C modules. These would cause the unit
tests to fail unnecessarily.