owncloudcmd: Implement --version, fix strings

Part of #2211
Use local socket (named pipe) connection also on Windows