Added runningOnMono switch to ManagementClient constructor so that it will work on Mono.