Fix builds with readonly source directories
am: 63f822dff8

Change-Id: Iada76d2cf8eafb3dfd3522880d1c7cb15e5a1b0c