Simpler and working non windows system check.
Merge pull request #6990 from s0undt3ch/hotfix/debug-sigusr-signal

Simpler and working non windows system check.