To fix the issue, replace the line
with the following one:
).replace(/\\/g, '/')}')}`;
See also:
windows-filesystem