The script now properly updates and cleans the folder.