Add os check for PID, PPID variables