Using safer LOCAL_REPO_ROOT. Renamed TMP.