fix for trailing slash breaking url on latest package install

per nic, this is a better fix for the trailing slash breaking package install if version isn't specified
Merge pull request #1 from hlarsen/master

fix for trailing slash breaking url on latest package install