Fixes IOError raised for fresh clones of the repo

On a fresh clone of the repo the ladder can't be cached without first creating a cache directory, so cache_ladder now automatically creates the directory if it doesn't exist.