associate cache dir with the output format as well
use single cache directory with format-specific subdirs
Merge pull request #108 from rstudio/cache_dir

associate cache dir with the output format as well