better code for node postinstall