Thanks to @Markismus's questions, I realized that some of what i thought
was true, wasn't.
First, pkill is a terrible idea to check for interpreted scripts.
Second, pidof is also potentially not that great for interpreted
scripts, because it'll only work with a shebang, and one that is
following the Linux syntax.
We don't have the full version with the -x to paper over that,
so use pgrep -f instead.
cf.
https://github.com/NiLuJe/koreader/commit/a736a571d221993c410da36bdcd8a1a2bde3f0fa#commitcomment-10948910
for the gory details.