Improved clean up of node_modules directories in deploy script