fix npm detection