use os.makedirs() instead of os.makedir() when creating our cache directory in case ~/Library/Caches doesn't exist. Addresses issue #408