Fixed escaping issue for win32 dependency paths with backslashes

When the alias is a string containing e.g. backslashes, as happens with Windows paths, escaping is needed before inserting it into the generated code.