removing the duplicate files from the master directory