Do not list files twice when cleaning cache.

Change-Id: Ie13cfc80aac4b48cfbb01da85baa13bac3517b95