Fix __moduleName tests on Windows.

The path normalization was done before calling into Node's
path.resolve which returns back slashes.