Add function to clean up redundant files and folders