Fixup cache directory and check for patch files before downloading