Fix source root not recognized (#10036) (#10083)

(cherry picked from commit be530855265e6548ce1e5db54b2e3dd95448f45a)

Co-authored-by: Julfried <51880314+Julfried@users.noreply.github.com>
3 files changed