Fix pathing on Windows

Resolving paths was broken on Windows. Using `process.cwd()` and `path.basename()`, which are supported across platform, fixed the issue