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

Addressed nits
Merge pull request #375 from mozilla-b2g/fix-pids

Bug 1050026 - Detect b2g main/child pids by looking at pid and ppid. r=tchou