2 fixes

- check number of args on remote command
- fix template pkg (CMakeLists)