Let's use a template for this, like:
`/4.8/4.8.4/'` -> `/%s/%(version)s/' % '.'.join(version.split('.')[:-1])`