Adds sudo for repo replace

Change-Id: I089af51b661893387a860f35cbf8c0035c852653