Remove pidof as it is deprecated on several distros

Pidof is no longer available on some distros like Gentoo - this will replace the use of "pidof" with some "ps/grep"-Variant.

Note: While it should work on most distros I only tested Gentoo so far

Note: Original returns uninitialized variable if no processes are found.