Fix detection of npm