Corrected detection of installed npm and node