Move make_local_copy to utils

This is also shared by manage-projecs and track-upstream - but there was
also a change to its logic in the former patch which would be hard to
see if we moved it and changed it in the same patch.

Change-Id: Iab287596d1e0db529e9557cc057d558d5b7ecccb
3 files changed