support for running pub on folders

@ussuri

Changed the pub get/upgrade to work on folders containing pubspecs.