It has been discussed in https://github.com/smt116/node-native-ext-loader/pull/3. The current solution is to match against "./" and ".\\" and skip using `path.join` in such case. Find a solution that doesn't require hardcoding such condition.