improve package manager detection. install npm. add some suppport for installing dependencies with apt-get.