Use filepath instead of path where possible

-Path does not always work well with windows

[#79748230]