[scripts] fix media/custom in major upgrade script

This step is already included in the minor upgrade script, but not
in the major upgrade script.
Merge pull request #887 from haiwen/copy-custom-on-upgrade

[scripts] fix media/custom in major upgrade script