Only attempt to read url_cache.json if it exists already.
isdir is found in os.path, not os.