Trailing slash fix

The trailing slash should is added also to cache_dir