(c backend) Fix windows paths when trace option is used