client/common: fixed command line parsing issue

fixes #1333
cmdline: unix/windows return detected error
Merge pull request #1339 from bmiklautz/cmd_line_fixes

Fixed cmd line sefault and help/version command