moved cache-reset into cache-dir-check

to avoid `rm: cannot remove `/cache/niftypee/*.txt': No such file or
directory`