Fixes main path so it can be used in Node.js