Fix plugins path

Unhardcode plugins path.
Use plugins path properly: temporarily add plugins path to system path
and then restore it.