Cleaning up files to be added to index