Uses File#mkpath to create cache

Rather than failing when the config folder doesn't exist, this creates
the full path recursively.
Fixes code related to config specs

* Changed the option name and missed the global change in the suite
  causing it to revert to the default
* File#path replaces #to_path because it was erroring when file was
  closed