Fix: detect RPC endpoint and SSH multiplexing conf

@stdweird More a general question I have: When do we use constants and when Readonly ?