Fix plugin.path

Closes #857