Switch to `ps` for checking process names.

Stripped down busybox installations may not have `pidof`, so I switched to a
`ps` implementation.