Fixed the mirror directory name end with at least one slash in cache path

| Q               | A
| --------------- | ---
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Tests pass?     | yes
| Related tickets |
| License         | GNU GPLv3