Clean up output
Create the cache subdirectory if it doesn’t exist