Using kill instead of pkill to ensure linux compatibility

This change is needed because pkill's -F option is only available
on BSD systems.