cpp: added missing cmake module for older cmake versions
cpp: rpc: fixed test dir from environment variable