Ensure file paths are normalised early on