Use cdap['version'] attribute for install

This doesn't work on the snapshot repositories, but works great for normal installations. Will address snapshots in another PR...