Fix missing `cache_dir` when not hosting on heroku.