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.
Merge pull request #302 from ctrochalakis/process_group_fix

Ensure foreman is the process group leader