if a locally installed plugin not published to npm has a syntax error, this fixes it. closes #2512