fix `project_dirname` lookup for cross-platform compatibility
fix child_process.spawn() for Windows