Fixed cache dependency bug

Cache dependencies in folders weren't being checked to see if they had
changed.