Add remote_group.cpp to CMake project file
Fix parsing of command line options, close #165