d2: modify the updater script to support copying to destination

Change-Id: I273770bfe9b93e49e361c3a2c1cec6310d7fd2fd
Merge "d2: modify the updater script to support copying to destination" into cm-10.2