Use sudo for rebuilding the cache

Change-Id: If5547dcb15911a9d7f344de61e325e4ab3ba6e34