Dart Plugin- Optimizations around 'pub list-package-dirs' action

Dart Plugin- Various optimizations for 'pub list-packge-dirs' action.