Refactor win32 pathing from js into _win.cpp to improve mockability