Fix build failures, mostly switching from File to Path after 903a6a77eae601a57b38e182a4b4b986d4063266