CDAP-474 Use maven resource filtering to automatically set version in cdap-cli scripts

Tested tgz, rpm, and sdk.