Allow setting control socket on CLI

Currently the if statement on line 1364 will always be true because ctlname is set on line 1294 and thus there isn't a way to specify the control socket on the CLI.