Bug 1050026 - Detect b2g main/child pids by looking at pid and ppid

Addressed nits