If there is a cache directory, save there all compiled code.