Don't open module dirs; just files.

Fixes bug in salt-ssh that prevents it from working when nested dirs
exist under /srv/salt/_modules. Closes #15671.