Fixed python config detection (external patch).