spacing (pep8 formatting) and abort if cache_dir can't be created