Fixing double slashes in capabilities when gwc is deploy on root context '/' (Backport 1.6.x)

Backport on the 1.6.x branch of the https://github.com/GeoWebCache/geowebcache/pull/268