Remove double dots from cache path without keys

When no key is specified, do not concat the string with two dots as it results in a double dotted file path for both cache files.

Before this patch: `cache-dir/module-config-cache..php`
After this patch: `cache-dir/module-config-cache.php`