Move pluginpath to early declaration
Catch syntax errors before pushing the script