fixed a small bug in searching for plugin files