Fix issue with Windows paths

Fixes #1146
Node API: add options parameter to require.makeDefault()