Root path resolution during optimizing build