DirectoryCache: access and save calls on DirectoryCache after substituting those calls as needed since it does not substitute them anymore
DirectoryCache: The cache keeps track of files and directories and should therefor not be the one to do any substituting.
Merge pull request #2192 from DasMarx/cacheFixes

Cache fixes, e.g. after pathsubstituion