add special hacks to run preinstall/install/postinstall when uid=0 because npm won't run these scripts as root