Support modularized private repo.

Change-Id: I94c526339519fc0980edf518fd79f3bad30f04f6