Support overriding the download root directory

Change-Id: Ie97d67302175e2286fbd54ea0010b6cf28da2990