Cache.py - Renamed dir to directory