Ensure paths are formatted consistently.