. improved npm detection