Update script for merging forks to be more generic

Change-Id: I7eb4c8a8b449ec0847557cde9edc6078e4d77072
Merge branch 'cm-10.2' of git://github.com/Team-Hydra/android into cm-10.2