Replace `\` globally in uploadPath