Use proper paths when determining file finder icons for external files (#32274)

Before:
<img width="576" alt="before"
src="https://github.com/user-attachments/assets/8469e27f-c878-4b89-a6f0-577a502fc625"
/>

After:
<img width="558" alt="after"
src="https://github.com/user-attachments/assets/b8361b88-c6c6-40a5-890d-047fff8e909e"
/>


Release Notes:

- N/A
dc63138089Kirill Bulatov committed on 6/6/2025, 11:04:49 PM· committed by GitHubparentfa02bd7
1 file changedLine totals unavailable