when searching for a plugin only look for a regular file
Merge pull request #4547 from stoned/find_plugin-fix

when searching for a plugin only look for a regular file