when searching for a plugin only look for a regular file