Ensure foreman is the process group leader

Foreman should be the process leader before killing processes using
his process group id.

Before that foreman was broken when it was not spawned from a shell.

(Tested on linux only)