Fixed problem in finding pid
Correctly create RPMs with plugins