Update cache check in find_plugin

I am not familiar with the internals, but this line looked suspicious.