Use killall instead of pkill to support old OS versions
Improve preinstall scripts