Added condition for orphaned process

This commit adds a condition to the forked? check that handles cases in
which a process is a fork of chef-client but the parent no longer
exists.

It also changes '$$' to Process.pid to be more consistent with the other
references to Process.ppid.