Fix more npm errors on lower versions of Node