if package version isn't specified do not use it in url

trailing slash was being added when version wasn't specified, which would point to the wrong url.