Adding a try/catch around rmdir of node_modules