Fix plugin path detection