Why can't shelljs.rm('-r', path) be used here?