Alow setting the cachedir different from the outputdir