Updated Go script to remove patch files after use