Cleans up files in directories based on their age (patched fork)