Fixed rescue mode detection for WCF standalone

Fixes #1502