fix package install by make trailing slash optional

per nic, this is a better fix for package installs breaking when not specifying the version