[BUILD] Calculate the full path ahead of time