Use `path.resolve(process.cwd(), "package.json")` so it works on Windows too.