Fixed forking logic

Forking always forked only 2 processes, this patch fixes this, so that exactly fork_count workers run at the same time.