fix for backslashes in paths when generating on Windows