Fix duplicate process detector.

Fixed program detecting itself and thinking that its process already
exists.