This closes bug #2184326 on SourceForge. Some people may not have access to their git repository, so we save the cache to the output directory instead (which must always have write access anyway).