Update base.py

avoid an OS error when scanning mod_path's that are not physical directories (such as eggs)