Ignore non-directories when scanning for plugins.

This keeps OS X's .DS_Store from getting picked up as a plugin when using `disabled_plugins` and not `enabled_plugins`.