Write changed and new file additions to cache directory