hooks: check for node_modules local exists first