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