Added a function to clean older directories