changes inside Directory and File to save and use substituted paths when using DirectoryCache
changes inside DirectoryCache as it will now only save given folders and files without using path substitution on them