toolchain: fix paths after relocation from usr/ (#10876)