Fix Windows generator namespacing (#254)

That should fix issue #254. Problem was that calling replace with an un-normalized path (a classic `\` and `/` issue) wasn't working.